home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Broadcaster / BroadcastLoop.cp < prev    next >
Encoding:
Text File  |  1997-06-28  |  431 b   |  22 lines  |  [TEXT/CWIE]

  1. // BroadcastLoop.cp
  2.  
  3. #ifndef BroadcastLoop_h
  4. #include "BroadcastLoop.h"
  5. #endif
  6.  
  7. template < class Protocol >
  8. BroadcastLoop<Protocol>::BroadcastLoop( const Broadcaster<Protocol>& source )
  9.   : ListLoop< Protocol >( source )
  10.   {
  11.      if ( Unfinished() )
  12.          (*this)->SetContext();
  13.   }
  14.  
  15. template < class Protocol >
  16. void BroadcastLoop<Protocol>::operator++()
  17.   {
  18.     Inherited::operator++();
  19.      if ( Unfinished() )
  20.          (*this)->SetContext();
  21.   }
  22.